import java.awt.Font;
import java.awt.MenuBar;

public class JAPI_Menubar extends MenuBar
{
	private static final long serialVersionUID = -4844101572734093628L;

	public JAPI_Menubar()
	{
		super();
   	}
   	
   	public void setEnabled(boolean enable) {
		for(int i=0;i<getMenuCount();i++)
			getMenu(i).setEnabled(enable);
   	}

	public void setFont(Font f)
    {
   		int i;
  		super.setFont(f);
		for(i=0;i<getMenuCount();i++)
			getMenu(i).setFont(f);
	}
}
